<?php

namespace App\Models;

class CouponUser extends BaseModel
{
    protected $table = 'coupon_user';

    protected $fillable = [
        'user_id',
        'coupon_id',
        'order_id',
        'add_type',
        'status',
        'start_time',
        'end_time',
        'use_time',
    ];

    public function coupon()
    {
        return $this->hasOne(Coupon::class, 'id', 'coupon_id');
    }
}
